import React from "react";
class Item extends React.Component {
    static defaultProps = {
        text: '3333333',
        checked: false,

    }

    render() {
        return (
            <li>
                <input type="checkbox" checked={this.props.checked}
                    onChange={this.props.onChange} /> <span>{this.props.value}</span>
            </li>
        );
    }
}
export default Item;